package com.navinfo.data.journal;

/**
 * 趟程边线
 */
public class JournalEdge {
    /**
     * 起始12级瓦片编号
     */
    long src;
    /**
     * 截止12级瓦片编号
     */
    long dst;
    /**
     * 合计里程（米）
     */
    int totalDistance;
    /**
     * 历经次数
     */
    int times;
    /**
     * 合计时长（秒）
     */
    int totalDuration;
    /**
     * 合计载荷（0.1吨）
     */
    int totalVehicleEstimatedLoad;

    public JournalEdge(long src, long dst, int totalDistance, int times, int totalDuration, int totalVehicleEstimatedLoad) {
        this.src = src;
        this.dst = dst;
        this.totalDistance = totalDistance;
        this.times = times;
        this.totalDuration = totalDuration;
        this.totalVehicleEstimatedLoad = totalVehicleEstimatedLoad;
    }

    public int getTotalDuration() {
        return totalDuration;
    }

    public void setTotalDuration(int totalDuration) {
        this.totalDuration = totalDuration;
    }

    public long getSrc() {
        return src;
    }

    public void setSrc(long src) {
        this.src = src;
    }

    public long getDst() {
        return dst;
    }

    public void setDst(long dst) {
        this.dst = dst;
    }

    public int getTotalDistance() {
        return totalDistance;
    }

    public void setTotalDistance(int totalDistance) {
        this.totalDistance = totalDistance;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public int getTotalVehicleEstimatedLoad() {
        return totalVehicleEstimatedLoad;
    }

    public void setTotalVehicleEstimatedLoad(int totalVehicleEstimatedLoad) {
        this.totalVehicleEstimatedLoad = totalVehicleEstimatedLoad;
    }

    @Override
    public String toString() {
        return "JournalEdge[src=" + src + ",dst=" + dst
                + ",totalDuration=" + totalDuration  + ",totalDistance=" + totalDistance + ",times=" + times
                + ",totalVehicleEstimatedLoad=" + totalVehicleEstimatedLoad + "]";
    }
}
